const { exec } = require('child_process');

const gitStatus = (workspaceUri) => {
    return exec(`git status ${workspaceUri}`)
}

const gitDiff = (workspaceUri) => {
    return exec(`git status ${workspaceUri}`)
}

const gitAdd = (workspaceUri) => {
    return exec(`git add ${workspaceUri}`)
}

const gitCommit = (workspaceUri) => {
    return exec(`git commit -m ${workspaceUri}`)
}

const gitPull = (workspaceUri) => {
    return exec(`git pull ${workspaceUri}`)
}

const gitFetch = (workspaceUri) => {
    return exec(`git fetch ${workspaceUri}`)
}

const gitPush = (workspaceUri) => {
    return exec(`git push ${workspaceUri}`)
}
// 切换分支
const gitCheckout = (workspaceUri) => {
    return exec(`git checkout ${workspaceUri}`)
}

const gitBranch = (workspaceUri) => {
    return exec(`git push ${workspaceUri}`)
}